package com.java_base.array_study;

public class ArrayDemo02 {
    public static void main(String[] args) {
        // 目标：学会访问数组元素
        int[] ages = {12,24,36};
        // 取值
        System.out.println(ages[0]);
        System.out.println(ages[1]);
        System.out.println(ages[2]);
        System.out.println("******************************************");
        // 赋值
        ages[2] = 100;
        System.out.println(ages[2]);
        System.out.println("_______________________________");
        // 访问数组长度
        System.out.println(ages.length);

    }
}
